<%inherit file="/base.html"/>

<%def name="main_heading()">${_('Main page')}</%def>

<%def name="content()">

% for row in range(c.rows):
<tr>
	% for col in range(c.cols):
		% if c.block(row, col):
			% if c.block(row, col) == 'empty':
			<td></td>
			% else:
			<td class="homepage-block b${row}${col}" rowspan="${c.block(row, col).rowspan}" colspan="${c.block(row, col).colspan}">
				<h2 class="homepage-block-caption">
					<a href="${c.block(row, col).url}">
						<img src="${c.block(row, col).icon}"/>
						<span>${c.block(row, col).caption}</span>
					</a>
				</h2>
				${c.block(row, col).render()}
			</td>
			% endif
		% endif
	% endfor
</tr>
% endfor

</%def>